package cn.lijiguo.concurrency.part1.ch02;

/**
 * SimpleCalculatorStrategy
 * 计算个人所得税的简单实现
 * @author lijiguo
 * @date 2019/12/6 15:58
 */
public class SimpleCalculatorStrategy implements CalculatorStrategy {
    @Override
    public double calculate(double salary, double bonus) {
        return salary * 0.1 + bonus * 0.15;
    }
}
